<!-- 车辆详情 -->
<template>
  <div
    class="dashboard-container vehicle-detail"
  >
    <el-card
      style="height:100%"
    >
      <el-tabs
        v-model="activeName"
        @tab-click="handleClick"
      >
        <el-tab-pane

          name="first"
        >
          <span
            id="Tags"
            slot="label"
          >基本信息</span>
          <!-- 车辆基本信息组件 -->
          <vehicleInfoVue :userid="uid" />
        </el-tab-pane>
        <el-tab-pane
          label="驾驶证信息"
          name="second"
        >
          <!-- 驾驶证信息 -->
          <vehicleDrivingLicenseVue></vehicleDrivingLicenseVue>
        </el-tab-pane>

      </el-tabs>
    </el-card>
  </div>
</template>
<script>
import vehicleDrivingLicenseVue from './components/vehicle-driving-license.vue'
import vehicleInfoVue from './components/vehicle-info.vue'

export default {
  components: { vehicleInfoVue, vehicleDrivingLicenseVue },
  data() {
    return {
      activeName: 'first',
      uid: this.$route.query.id
    }
  },

  methods: {
    handleClick(tab, event) {
      console.log(tab, '-----', event)
    }
  }

}
</script>
<style lang="scss" scoped>
.active {
  color: #ff643d;
}
/deep/.is-active{

  font-size: 16px;
    font-weight: 700;
    color: #20232a;
}
/deep/.el-tabs__active-bar{
  background-color: #ff643d;
  content: "";
    display: block;
    background-color: #e15536;
    height: 3px;
    width: 40px;
    margin: 0 auto;

}
/deep/.el-tabs__item:hover{
  color: #000;
}
</style>

<style lang="scss" scoped>
.vehicle-detail {
   padding: 20px;
  /deep/ .el-container{
    flex-direction: column;
    margin-left: 0px;

  }
  .in{
    height: calc(100vh - 205px);
    // height: 100%;
  }
  .aside-box {
    background: #ffffff;
    border-radius: 4px;
    // width: 150px;
    padding: 24px 37px 24px 37px;
    box-sizing: border-box;

    // min-height: calc(100vh - 50px);
    /deep/ .el-aside {
      padding-bottom: 14px;
      width: 100%!important;
      display: flex;
      background-color: #ffffff;
      border-bottom:1px solid #E5E7EC ;
      text-align: left;
      font-size: 14px;
      .aside-item {
        // margin-top: 38px;
        cursor: pointer;
        &:first-child {
          margin-right: 53px;
          padding-left: 25px;

        }
      }
      .aside-item.active{
        font-size: 16px;
        font-weight: bold;
        color: #20232A;
        &:after{
          content: '';
          display: block;
          background-color:#E15536 ;
          height: 3px;
          width: 49px;
          margin: 0 auto;
          position: relative;
          top: 14px;
        }
      }
    }
  }
}
</style>
